﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Hyt.Web.Mvc.Controls
{
    public static class InputExtensions
    {
        /// <summary>
        /// 查找带回
        /// </summary>
        /// <param name="name">PostbackName</param>
        /// <param name="url">查找地址</param>
        /// <param name="remoteget">带回解析式(Postback项),eg:o.Id</param>
        /// <param name="viewremoteget">带回解析式(显示项),eg:o.Id</param>
        /// <returns></returns>
        public static MvcHtmlString Remoteback(this HtmlHelper helper, string name, string url, string remoteget, string viewremoteget, string width = "250px", string defaultvalue = "", string defaultviewvalue = "")
        {
            return new MvcHtmlString(Inputs.Remoteback(name, url, remoteget, viewremoteget, width, defaultvalue, defaultviewvalue));
        }

    }
}
